<template>
	<view class="content">
		<image class="paysuccess" src="../../static/img/me/checkstand_pay_success.png" mode=""></image>
		<text class="tit">付款成功</text>
		<text class="tit2">您的宝贝马上就会去找您。</text>
		
		<view class="btn-group">
			<navigator url="/pages/index/index" open-type="switchTab" class="mix-btn hollow">返回首页</navigator>
			
			<view @click="orderDetail" class="mix-btn">查看详情</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:"201",
				orderId:"",
				order:"",
			}
		},
		
		onLoad(options) {
			this.orderId = options.orderId
			let order = uni.getStorageSync("orderId")
			console.log("options",options)
			console.log(order.data)
		},
		
		
		methods: {
			orderDetail(){
				uni.redirectTo({
					url: `/pages/order/orderDetail?orderId=${this.order}&id=${this.id}`
				})
			}
		}
	}
</script>

<style lang='scss'>
	.content{
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
	.success-icon{
		font-size: 160upx;
		color: #fa436a;
		margin-top: 100upx;
	}
	.paysuccess{
		width: 130px;
		height: 106px;
		margin-top: 85px;
		left: -6px;
	}
	.tit{
		font-size: 38upx;
		color: #6E609E;
		padding-top: 10px;
		padding-bottom: 10px;
	}
	.tit2{
		font-size: 12px;
		color: #999999;
	}
	.btn-group{
		display: flex;
		align-items: center;
		padding-top: 100upx;
	}
	.mix-btn {
		margin-top: 30upx;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 115px;
		height: 35px;
		font-size: $font-lg;
		color: #fff;
		background-color: #6E609E;
		border-radius: 60upx;
		
		
		
		
		&.hollow{
			background: #E6E6E6;
			color: #666666;
			border: 1px solid #ccc;
			margin-right: 15px;
		}
	}
</style>
